/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package systole.persistence.brokersInterface;

import java.util.List;
import systole.domain.report.template.Comment;
import systole.exceptions.ExceptionDAO;

/**
 *
 * @author jmj
 */
public interface CommentBroker {

    /**
     * @param comment
     * @throws ExceptionDAO
     */
    public void insert(Comment comment) throws ExceptionDAO;

    /**
     * @param comment
     * @throws ExceptionDAO
     */
    public void update(Comment comment) throws ExceptionDAO;

    /**
     * @return List of comment.
     * @throws ExceptionDAO
     */
    public List<Comment> getAllComments() throws ExceptionDAO;

    /**
     * @return List of comment for male.
     * @throws ExceptionDAO
     */
    public List<Comment> getCommentsForMale() throws ExceptionDAO;

    /**
     * @return List of comment for female.
     * @throws ExceptionDAO
     */
    public List<Comment> getCommentsForFemale() throws ExceptionDAO;

    /**
     * 
     * @param name
     * @param id
     * @return if exist the comment
     * @throws ExceptionDAO
     */
    public boolean existComment(String name, Integer id)throws ExceptionDAO;
}
